package ch8;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        int[] num = new int[15];
        Scanner scan=new Scanner(System.in);

        for (int i = 0; i < num.length; i++) {
            System.out.println("请输入第"+(i+1)+"个数");
            num[i]=scan.nextInt();
        }
        System.out.println("请输入你要查找的数字");
        int num1=scan.nextInt();
        int count=0;
        for (int i = 0; i < num.length; i++) {
            if(num1==num[i]){
                count++;
            }
        }
        System.out.println("你要查找的数字出现了"+count+"次");

    }
}
